import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
// 路由守卫
// import {AuthRouterService} from '../core/service/auth-router.service';
import {HomeComponent} from './home.component';

const homeRoutes: Routes = [
    {
        path: '',
        component: HomeComponent,
        children: [
            {
                path: 'front-page',
                loadChildren: './front-page/front-page.module#FrontPageModule'
            },
            {
                path: '',
                redirectTo: 'front-page',
                pathMatch: 'full'
            },
            {
                path: '**',
                redirectTo: 'front-page',
                pathMatch: 'full'
            }
        ]
    }
];

@NgModule({
    imports: [
        RouterModule.forChild(homeRoutes)
    ],
    exports: [
        RouterModule
    ],
    declarations: []
})
export class HomeRoutingModule {
}
